package com.zmm.member;

import com.zmm.util.auth.model.Operator;
import com.zmm.util.component.WebLogAspect;
import com.zmm.util.config.BaseConfigure;
import com.zmm.util.config.MyThreadConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * EnableDiscoveryClient 配置 nacos
 * @EnableAutoConfiguration 自动读取配置
 * @ComponentScan 包扫描
 * @SpringBootApplication 中已经存在 EnableAutoConfiguration 和 ComponentScan
 * @MapperScan 扫描 mapper
 * @Description:
 * @Name MemberApplication
 * @Author Zebulon
 * @Date By 2021-06-21 21:23:34
 */
@RefreshScope
@EnableDiscoveryClient
@MapperScan("com.zmm.member.dao")
@SpringBootApplication
public class MemberApplication {

	public static void main(String[] args) {
		SpringApplication.run(MemberApplication.class, args);
	}

	@Component
	public class ServiceConfigure extends BaseConfigure {
	}
	
	@Component
	public class OperatorConfigure extends Operator {
	}
	
	@Component
	public class MyThreadConfigure extends MyThreadConfig {
		
	}
	
	@Component
	public class MyWebLogAspect extends WebLogAspect {
		
	}

}
